package com.qianfeng.mapper;

import com.qianfeng.entity.Employee;

import java.util.List;

public interface EmployeeMapper {
    /**
     * 增
     * @param employee
     */
    void addEmployee(Employee employee);

    /**
     * 删
     * @param empId
     */
    void deleteEmployee(Integer empId);

    /**
     * 更新
     * @param employee
     */
    void updateEmployee(Employee employee);

    /**
     * 通过id查询
     * @param empId
     * @return
     */
    Employee getEmployee(Integer empId);

    /**
     * 查询列表
     * @return
     */
    List<Employee> getEmployeeList();

    /**
     * 通过用户名查询用户信息
     */
    Employee getEmployeeByEmail(String email);

}
